package com.personnalManagerSystem.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author liqing
 * @since 2022-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class Attend implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 考勤主键ID
     */
    @TableId(value = "attend_id", type = IdType.AUTO)
    private Integer attendId;

    /**
     * 员工id(外键)
     */
    private Integer userId;

    /**
     * 出勤日期
     */
    private LocalDate attendTime;

    /**
     * 上班时间
     */
    private LocalDateTime workTime;

    /**
     * 下班时间
     */
    private LocalDateTime quitTime;

    /**
     * 上班状态,上班状态正常为1,迟到为0,早退为1
     */
    /**
     * 考勤结果
     */
    private String result;
    //考勤状态
    private String attendState;
    /**
     * 一个用户每一天可以请好多次假,有多个时间段都会考勤,一个考勤至多对应一个用户
     */
    private User user;

}
